import { guid } from "./guid";

const scopeidcache = new Map<string, string>();
console.log(scopeidcache);
export function getscopeidofurl(url: string): string {
    let cachescopeid = scopeidcache.get(url);

    if (cachescopeid) {
        return cachescopeid;
    } else {
        let scopeid = "scope-" + guid();
        scopeidcache.set(url, scopeid);
        return scopeid;
    }
}
